package com.AJava1710D.设计模式.单例.枚举单例2;

import java.io.*;
import java.lang.reflect.Constructor;
import java.lang.reflect.InvocationTargetException;

/**
 * @author: LCG
 * 作者: LCG
 * 日期: 2020/10/6  8:30
 * 描述:
 */
public class Test0001 {
    public static void main(String[] args) throws NoSuchMethodException, IllegalAccessException, InvocationTargetException, InstantiationException, IOException, ClassNotFoundException {

       /* PuTongdanLi puTongdanLi=PuTongdanLi.getInstance();

        Class<PuTongdanLi> puTongdanLiClass = PuTongdanLi.class;
        Constructor<PuTongdanLi> declaredConstructor = puTongdanLiClass.getDeclaredConstructor();
        declaredConstructor.setAccessible(true);
        PuTongdanLi puTongdanLi1 = declaredConstructor.newInstance();

        System.out.println(puTongdanLi==puTongdanLi1);
*/


        //序列化测试
       /* ByteArrayOutputStream byteArrayOutputStream=new ByteArrayOutputStream();
        ObjectOutputStream objectOutputStream=new ObjectOutputStream(byteArrayOutputStream);
        objectOutputStream.writeObject(meiJuMyUser);

        ByteArrayInputStream byteArrayInputStream=new ByteArrayInputStream(byteArrayOutputStream.toByteArray());
        ObjectInputStream objectInputStream=new ObjectInputStream(byteArrayInputStream);
        MeiJuMyUser meiJuMyUser1=(MeiJuMyUser)objectInputStream.readObject();
        System.out.println(meiJuMyUser==meiJuMyUser1);*/


    }
}
